package com.cly.statistics;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 饼状统计
 *
 * @author by 春风能解释
 * <p>
 * 2024/10/15
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "饼状统计")
public class PieStatistics<T> implements Serializable {

    /**
     * 序列化版本号
     */
    @Serial
    private static final long serialVersionUID = 3821227711146732796L;
    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 占比
     */
    @Schema(description = "占比")
    private T value;
}
